import { RouteConfig } from 'vue-router'
import Layout from '@/layout/index.vue'

const systemRouter: RouteConfig = {
  path: '/system',
  component: Layout,
  redirect: 'noredirect',
  name: 'System',
  meta: {
    title: 'system',
    icon: 'chart'
  },
      children: [
        {
          path: 'user',
          component: () => import(/* webpackChunkName: "user" */ '@/views/system/user/user.vue'),
          name: 'User',
          meta: {
            title: 'user',
            noCache: true
          }
        },
        {
          path: 'role',
          component: () => import(/* webpackChunkName: "role" */ '@/views/system/role/role.vue'),
          name: 'Role',
          meta: {
            title: 'role',
            noCache: true
          }
        },
        {
          path: 'menu',
          component: () => import(/* webpackChunkName: "menu" */ '@/views/system/menu/menu.vue'),
          name: 'Menu',
          meta: {
            title: 'menu',
            noCache: true
          }
        }
      ]

}

export default systemRouter
